<?php
/**
 * @notes:
 * @return
 * @author: admin
 * @date: 2024/9/11
 */
namespace addons\shopro\validate\tokens;

use think\Validate;

class Pledge extends Validate
{

    protected $rule = [
        'id' => 'require',
        'rep_password' => 'require|alphaDash',
        'amount' => 'require|float',
    ];

    protected $message  =   [
        'id.require'     => '请输入质押ID',
        'rep_password.require'     => '请填写支付密码',
        'amount.require'     => '请填写质押数量',
        'amount.float'     => '数量输入错误',
    ];

    protected $scene = [
        'submit'  =>  ['id', 'rep_password'],
    ];


}